package com.dapeis.core.utils.json;

import java.lang.reflect.Type;

import com.ag.utils.json.AGsonBuilder;
import com.dapeis.domain.ext.GarderobeExt;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;

public class GarderobeExtGsonAdapter implements JsonSerializer<GarderobeExt> {

    @Override
    public JsonElement serialize(GarderobeExt src, Type typeOfSrc,
	    JsonSerializationContext context) {
	JsonObject json = new JsonObject();
	json.addProperty("typeCode", src.getTypeCode());
	json.addProperty("typeName", src.getTypeName());
	//json.add("list", AGsonBuilder.create().toJsonTree(src.getGarderobes()));
	return null;
    }

}
